package cn.maxhou.t0004;

import cn.maxhou.t0002.Hours;

public class Worker {
    public static void main(String[] args) {
        //通过Hours注解类型来获取Worker中的值数组对象
        Hours[] hours = Worker.class.getAnnotationsByType(Hours.class);
        //遍历数组
        for (Hours hour : hours) {
            System.out.println(hour);
        }
    }
}
